﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace gChartSharp
{
    public class ChartFillAreaSingleDataSeries : ChartFillArea, IFill
    {
        /// <summary>
        /// Override the inherited FillType property
        /// </summary>
        public new FillType FillType { get { return FillType.B; } }

        public ChartFillAreaSingleDataSeries(Color color, int startLineIndex, int endLineIndex)
        {
            base.Color = color;
            base.StartLineIndex = startLineIndex;
            base.EndLineIndex = endLineIndex;
        }

        //public new string Render()
        //{
        //    StringBuilder sb = new StringBuilder();
        //    sb.Append(this.FillType.ToString());
        //    sb.Append(",");
        //    sb.Append(ChartHelper.ConvertColorToHex(this.Color));
        //    sb.Append(",");
        //    sb.Append(StartLineIndex.ToString());
        //    sb.Append(",");
        //    sb.Append(EndLineIndex.ToString());
        //    sb.Append(",0"); // any value is ignored by the API

        //    return sb.ToString();
        //}
    }
}
